package com.jubao.ejb.dao;

import java.io.Serializable;
import java.util.List;

import com.jubao.ejb.entity.ProductPrice;
import com.jubao.ejb.entity.UserWebsite;

public interface UserWebsiteDao extends Serializable {

	/**
	 * save userWebsite
	 * 
	 * @param userWebsite
	 * @return UserWebsite
	 */
	public UserWebsite save(UserWebsite userWebsite);

	/**
	 * find UserWebsite
	 * 
	 * @param sysId UserWebsite sysId
	 * @return 
	 */
	public UserWebsite find(long sysId);

	/**
	 * find UserWebsite 
	 * 
	 * @param userSysId from entity sysid
	 * @param relationId relation 
	 * @param websiteSysId to entity sysid
	 * @return
	 */
	public UserWebsite find(long userSysId, int relationId, long websiteSysId);

	

	/**
	 * get userwebsite
	 * 
	 * @param userSysId
	 * @param relationId
	 * @param websiteSysId
	 * @param pgno
	 * @param pgsize
	 * @return
	 */
	public List<UserWebsite> getUserWebsiteList(long userSysId, int relationId, long websiteSysId, int pgno, int pgsize);


	/**
	 * get count of userwebsite
	 * 
	 * @param userSysId
	 * @param relationId
	 * @param websiteSysId
	 * @return
	 */
	public long getUserWebsiteCount(long userSysId, int relationId, long websiteSysId);

}
